﻿<?xml version="1.0" encoding="utf-8" ?>
<hibernate-mapping xmlns="urn:nhibernate-mapping-2.2" default-lazy="true" assembly="Mani.Patient.Business" namespace="Mani.Patient.Business.Domain.Entity">
  <class name="Question" table="Questions">

    <id name="Id" type="Int32" unsaved-value="0">
      <column name="ID" sql-type="int" not-null="true" unique="true" index="question_id" />
      <generator class="native" />
    </id>

    <property name="QuestionDesc" column="QuestionDesc" type="String" not-null="true" length="1000" />
    <many-to-one name="QuestionType" class="QuestionType" not-null="false" column="QuestionTypeId" />
  </class>
</hibernate-mapping>